<?php if (!defined('THINK_PATH')) exit(); if(is_array($follow)): $i = 0; $__LIST__ = $follow;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="feelcrm-followlist">

		<img src="<?php echo ((isset($vo["member_face"]) && ($vo["member_face"] !== ""))?($vo["member_face"]):'/Attachs/face/face.png'); ?>" class="follow-face fl" />

		<div class="feelcrm-followdetail fl">

			<?php if(($followtype) == "customer"): ?><span><?php echo L('FROM');?> - </span>

				<?php if(($vo["clue_id"]) > "0"): ?><span class="blue8"><?php echo L('CLUE');?></span>

					<?php else: ?>

					<?php if(($vo["opportunity_id"]) > "0"): ?><span class="blue8"><?php echo L('OPPORTUNITY');?></span>

						<?php else: ?>

						<span class="blue8"><?php echo L('CUSTOMER');?></span><?php endif; endif; endif; ?>

			<div class="feelcrm-followtit">

				<?php if(!empty($vo["cmncate_name"])): ?><span class="blue8"><?php echo ($vo["cmncate_name"]); ?>&nbsp;&nbsp;</span><?php endif; ?>

				<span class="follow-time"><?php echo (getDates($vo["createtime"])); ?>&nbsp;&nbsp;</span>

				<span class="blue8"><?php echo ($vo["member_name"]); ?> </span><?php echo L('GOT_ENGAGED');?>

				<span class="blue8"><?php echo ($vo["contacter_detail"]["name"]); ?></span>


				<?php if(!empty($isCommentFollowAuth)): ?><a href="javascript:" data-value="<?php echo ($vo['follow_id']); ?>" class="comment reply-comment fts13">

						<i class="iconfont icon-comment mr2"></i>

					</a><?php endif; ?>

				<span class="follow-delete ">

					<?php echo FEELCRM('Customer/edit_follow',['id'=>encrypt($vo['follow_id'],'FOLLOW'),'detailtype'=>encrypt('index',strtoupper($Think.CONTROLLER_NAME))],'','','','iconfont icon-bianji1');?>

					<?php echo FEELCRM('Customer/delete_follow',['id'=>encrypt($dataInfo[strtolower($Think.CONTROLLER_NAME).'_id'],strtoupper($Think.CONTROLLER_NAME)),'follow_id'=>encrypt($vo['follow_id'],'FOLLOW'),'detailtype'=>encrypt('index',strtoupper($Think.CONTROLLER_NAME))],'','','trash','iconfont icon-shanchu');?>

				</span>

			</div>

			<div class="feelcrm-followcon textareaImg">

				<?php echo (htmlspecialchars_decode($vo["content"])); ?>

				<?php if(!empty($vo["createFiles"])): ?><div class=""><?php echo L('ATTACHMENT');?>：</div><?php endif; ?>

				<?php if(is_array($vo["createFiles"])): $i = 0; $__LIST__ = $vo["createFiles"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><div class="gray3">

						<span >

							<?php if(in_array(($v["file_type"]), explode(',',"pdf,txt,doc,docx,xlsx,xls,jpeg,png,gif,jpg,ppt,pptx"))): ?><a class="cursor blue5" href="<?php echo openFile($v['file_link'],$v['file_type']);?>" target="_blank"><?php echo (getFileName($v["file_name"])); ?>.<?php echo ($v["file_type"]); ?></a>

							<?php else: ?>

								<?php echo (getFileName($v["file_name"])); ?>.<?php echo ($v["file_type"]); endif; ?>

						</span>

						<span class="gray4"> (<?php echo (getFileSize($v["file_size"])); ?>)</span>

						<a href="<?php echo ($v["file_link"]); ?>" download="<?php echo ($v["file_name"]); ?>" title="<?php echo ($v["file_name"]); ?>" class="blue8"><i class="iconfont icon-xiazai fts20" style="vertical-align: top !important;"></i></a>

					</div><?php endforeach; endif; else: echo "" ;endif; ?>

				<div class="comments">

					<?php $j = 1 ?>

					<?php if(is_array($vo["followComment"])): $i = 0; $__LIST__ = $vo["followComment"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vc): $mod = ($i % 2 );++$i; if($vc['follow_id'] == $vo['follow_id']): ?><div class="comment-item <?php if(($j) > "3"): ?>hidden<?php endif; ?>">

								<img src="<?php echo ((isset($members[$vc['member_id']]['face']) && ($members[$vc['member_id']]['face'] !== ""))?($members[$vc['member_id']]['face']):'/Attachs/face/face.png'); ?>" class="face">

								<span class="comment-name"><?php echo ($members[$vc['member_id']]['name']); ?></span>

								<span class="comment-content">：<?php echo (getHtml($vc["content"])); ?></span>

								<span class="comment-time"><?php echo (formatTime($vc["createtime"])); ?></span>

								<?php echo FEELCRM('Customer/delete_comment',['id'=>encrypt($dataInfo[strtolower($Think.CONTROLLER_NAME).'_id'],strtoupper($Think.CONTROLLER_NAME)),'comment_id'=>encrypt($vc['comment_id'],'COMMENT'),'detailtype'=>encrypt('index',strtoupper($Think.CONTROLLER_NAME)),'sourcetype'=>strtolower($Think.CONTROLLER_NAME)],'','fr','trash','iconfont icon-shanchu');?>

							</div>

							<?php $j++; endif; endforeach; endif; else: echo "" ;endif; ?>

					<?php if(($j) > "4"): ?><div class="comment-more"><i class="iconfont icon-xiangxiajiantou"></i></div><?php endif; ?>

				</div>

			</div>

			<!--<?php if(!empty($vo["contacter_detail"])): ?><div class="feelcrm-follownexttime"><?php echo L('CONTACT');?>：<?php echo ($vo["contacter_detail"]["name"]); ?></div><?php endif; ?>

            <?php if(!empty($vo["nextcontacttime"])): ?><div class="feelcrm-follownexttime"><?php echo L('NEXT_CONTACT_TIME');?>：<?php echo (getDates($vo["nextcontacttime"])); ?></div><?php endif; ?>-->

		</div>

		<div class="clear"></div>

	</div><?php endforeach; endif; else: echo "" ;endif; ?>